package com.eaoa.uc.address.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;

import com.eaoa.base.EABaseAction;
import com.eaoa.uc.address.bo.HraddressModifyBO;
import com.eaoa.uc.address.form.HRAddressModifyForm;
import com.eaoa.vo.pub.PubAddress;

public class HRAddressModifyAction extends EABaseAction {

	protected ActionForward doWork(ActionMapping mapping, ActionForm form,
			HttpServletRequest request, HttpServletResponse response) {
		HRAddressModifyForm hraddressform = (HRAddressModifyForm) form;

		String addressno = request.getParameter("addressno");

		PubAddress vo = hraddressform.getVO();
		HraddressModifyBO bo = new HraddressModifyBO(vo);
		bo.execute();

		request.setAttribute("addressno", hraddressform.getAddressno());
		return mapping.findForward("success");
	}

}